package com.vector.mapper;

import com.vector.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BookMapper {


    List<Book> queryAllBook();

    Book queryBookById(String bookISBN);

    int addBook(Book book);

    int updateBook(Book book);

    int deleteBook(String bookISBN);

    List<Book> queryBookByType(String booktype);


}
